import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom'
import Home from '../Home'
import List from '../List'
class Main extends Component {
  render (){
    return (
      <Switch>
        <Route exact path='/' component={Home}/>
        <Route path='/list' component={List}/>
      </Switch>
    )
  }
}
export default Main;